import fetcher from "./Fetcher";
import {NumberIdAndName} from "../types/BasicModels";

export function queryAllGoodsBrandTags(){
    return fetcher.get<Array<NumberIdAndName>>("goodsBrandTags")
}

export interface CreateGoodsBrandTagRequest{
    name:string
}

export function createGoodsBrandTag(request:CreateGoodsBrandTagRequest){
    return fetcher.post<number>("goodsBrandTags", {},request)
}

export function updateGoodsBrandTag(request:CreateGoodsBrandTagRequest){
    return fetcher.put("goodsBrandTags",{},request)
}